<template>
  <router-view />
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { isMobile } from '@/utils/device'

const router = useRouter()

onMounted(() => {
  if (isMobile()) {
    router.replace('/Todomoble')
  } else {
    router.replace('/Todolist')
  }
})
</script>